//
// Created by Martin on 2021/9/29.
//

#ifndef DESIGNPATTERN_CPP_CASHREBATE_H
#define DESIGNPATTERN_CPP_CASHREBATE_H

#include "CashSuper.h"
#include <string>

/**
 * 打折收费
 */
class CashRebate : public CashSuper{
public:
    explicit CashRebate(double moneyRebate);
    double acceptCash(double money) override;

private:
    double moneyRebate = 0.8f;
};


#endif //DESIGNPATTERN_CPP_CASHREBATE_H
